import {request} from './index'

export function getSearchResult(keywords,type) {
  return request({
    url: '/search',
    params: {
      keywords,
      type
    }
  })
}
export function getSearchSuggestion(keywords) {
  return request({
    url: '/search/suggest',
    params: {
      keywords 
    }
  })
}